<?php
?>
<form action="index.php?r=login/register" method="post">
身份证<input type="text" name="user[idcard]" value=""><br></br>
姓名<input type="text" name="user[name]" value=""><br></br>
邮箱<input type="text" name="user[email]" value=""><br></br>
手机<input type="text" name="user[telephone]" value=""><br></br>
密          码<input id="password" type="password" name="user[password]" value=""><br></br>
确认密码<input id="repassword" type="password" name="user[repassword]" value=""><br></br>
<input type="submit" value="submit" onclick="registermdencryption();">
</form>
<br></br>
<a href="index.php?r=main/index">return</a> to the login page
<script type="text/javascript" src="<?=Yii::app()->baseUrl?>/js/front/md5.js">
<!--

//-->
</script>
<script type="text/javascript">
function registermdencryption(){
	$pass = document.getElementById('password');
	$repass = document.getElementById('repassword');
 	$hash = hex_md5($pass.value);
 	$rehash = hex_md5($repass.value);
 	$pass.value = $hash;
 	$repass.value = $rehash;
}
</script>